<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    <title>成功</title>
	
  </head>
  
  <body>
 <p id="uname">${userName}</p>
 
 <table  id="role_list">
 </table>
  </body>
  
  <script type="text/javascript" src="../js/jquery-1.8.2.js"></script>
      <script type="text/javascript">
      $(document).ready(function(){
	$(function(){
    
	var uName = $("#uname").text();
	$('#role_list').jqGrid('setGridParam',{  
  	  	url : $(path).val()+'/mvc/getPerson',
  	  	postData:{
			'name':uName
		},
        datatype:'json',  
        page:1  
    }).trigger('reloadGrid'); //重新载入  
	

});
});
</script>
</html>
